<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>租客登记表</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="./css/sm.min.css">
    <link rel="stylesheet" href="./css/sm-extend.min.css">
   <link href="../css/flickerplate.css"  type="text/css" rel="stylesheet">
   <link href="../css/zukeKongjian.css" rel="stylesheet">
   <script src="../js/jquery-2.1.1.js"></script>
   
	<link rel="stylesheet" type="text/css" href="../css/style.css"/>
	<link rel="stylesheet" type="text/css" href="../css/weui/example.css">
	<link rel="stylesheet" type="text/css" href="../css/weui/weui.css" />
	<script type="text/javascript" src="../js/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>
   
   
   <script src="../js/min/modernizr-custom-v2.7.1.min.js" type="text/javascript"></script>
   <script src="../js/min/hammer-v2.0.3.min.js" type="text/javascript"></script>
   <script src="../js/min/flickerplate.min.js" type="text/javascript"></script>
   <script src="./js/home.js"></script>
   <script src="./js/zepto.js"></script>
   <script src="./js/sm.js" ></script>
  </head>
  
  <body>
    
  <div class="content">
  <h3 style="text-align: center;">租客登记表</h3>
  <div id="nodata" style="display: none;text-align: -webkit-center;padding-top: 3%;">暂无租客登记表</div>
  <img  src="" id="url" style="width: 100%;">
  </div>

<script type="text/javascript">
var storage=window.localStorage;
var userId = $.getUrlParam("userId");
var houseId = $.getUrlParam("houseId");
window.$$=window.Zepto = Zepto;
$(function() {
	getZuKeInfo();
});
function getZuKeInfo(){
	$$.showPreloader("加载中");
	$.ajax({
		type : "POST",
		dataType : 'json',
		url : "../house/loadZuKeInfo",
		data : {
			userId: userId,
			houseId : houseId
		},
		success : function(data) {
			$$.hidePreloader();
			console.log(data);
			var html="";
			if(data.info!=null ){
				$("#url").attr("src",data.info.url);
			}else{
				$("#nodata").show();
			}
		},
		error: function(){
			$$.hidePreloader();
		}
	});
}
function toLink(txt,tagrt) {
	document.location.href = "./" + txt;
}
</script>
  </body>
</html>